package com.smbms.entity;

import com.smbms.mapper.UserDao;

// 目标类
public class Greeting {
	private String person = "Nobody";
	private String words = "Nothing";
	private UserDao userDao;
	
	public UserDao getUserDao() {
		return userDao;
	}

	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}

	public String getPerson() {
		return person;
	}

	public void setPerson(String person) {
		this.person = person;
	}

	public String getWords() {
		return words;
	}

	public void setWords(String words) {
		this.words = words;
	}

	public void sayGreeting(){
		System.out.println(person + "˵:" + words);
	}

	public Greeting(){
		System.out.println("设值注入");
	}
	
	public Greeting(String person, String words) {
		
		this.person = person;
		this.words = words;
	}
	
	public int jisuan(int a){
		
		System.out.println("test");
		int i = 100/a;
		
		return 1;
	}
	
	
	
	
}
